package com.easyaop.test.core.demo;

import org.junit.jupiter.api.Test;

import com.easyaop.api.pointcut.PointcutParser;
// @Test
public class PointcutParserTest2 {
@Test
    public void testAdd() {
        PointcutParser parser = new PointcutParser("aj$MatchTest2", "add", "(..)");
        System.out.println(parser.isClass("aj$MatchTest2"));
        System.out.println(parser.isClass("aj1Test2"));
    }

    public void testSubtract() {
        PointcutParser pointcutParser = new PointcutParser("aj..MatchTest2", "add", "(int,int)");
        System.out.println(pointcutParser.isClass("aj.MatchTest2"));
        System.out.println(pointcutParser.isClass("aj.aa.MatchTest2"));
    }
}
